package com.anxin.bean;

import java.util.ArrayList;
import java.util.List;


import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;


@Repository
@Scope("prototype")
@SuppressWarnings("serial")
public class Type implements java.io.Serializable {
	// Fields
	private int id;    //* 类型id，自增主键. *
	private String name;    //* 参数名称. *
	private String scode;    //* 参数代码 *
	private int parentid;     //* 上级参数.父参数id *
	private Type parents;     //* 上级参数 *
	private String para_desc;    //* 参数描述. *
	private int Bz_desc;     //* 有利于开发用，特别标识. *

    private List<Department> departs=new ArrayList<Department>(); //* list部门区域 *

    // Constructors
	/** default constructor */
	public Type() {
	}
	/** full constructor */
    public Type(String name,String scode,Type parents,String para_desc,
    		List<Department> departs){
    	this.name=name;
    	this.parents=parents;
    	this.scode=scode;
    	this.para_desc=para_desc;
    	this.departs=departs;
    }
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getScode() {
		return scode;
	}
	public void setScode(String scode) {
		this.scode = scode;
	}
	public int getParentid() {
		return parentid;
	}
	public void setParentid(int parentid) {
		this.parentid = parentid;
	}
	public Type getParents() {
		return parents;
	}
	public void setParents(Type parents) {
		this.parents = parents;
	}
	public String getPara_desc() {
		return para_desc;
	}
	public void setPara_desc(String para_desc) {
		this.para_desc = para_desc;
	}
	public int getBz_desc() {
		return Bz_desc;
	}
	public void setBz_desc(int bz_desc) {
		Bz_desc = bz_desc;
	}
	public List<Department> getDeparts() {
		return departs;
	}
	public void setDeparts(List<Department> departs) {
		this.departs = departs;
	}

}
